package com.story.aistory.service;

import com.story.aistory.domain.dto.StoryDto;
import com.story.aistory.domain.po.Result;
import com.story.aistory.domain.po.Story;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hui
 * @since 2025-03-12
 */
public interface IStoryService extends IService<Story> {


    Result saveStory(StoryDto storyDto);


    Result getStoryById(Integer storyId);


    Result<List<StoryDto>> getStories();

    Result deleteStory(Integer storyId);

    Result updateStory(StoryDto storyDto);

    Result likeStory(Integer storyId,Integer type);

    Result readStory(Integer storyId);
}
